Menu 

Inherits from: 
System 

_____________________________________________________
           name   *207*

Type:   string 

Constraints:
Not settable when «Menu» is active.

Description:   Appears as text in the menu bar of the owning «Application» and is used by the primitives find-menu and find-menu-a for finding a «Menu» by name.

_____________________________________________________
          owner   *207*

Type:   Application 

Constraints:
Not settable.  

Description: If «Menu» and an «Application» are both active, then the value of owner is the active «Application». Otherwise NULL.

_____________________________________________________
          active?   *207*

Type:   boolean 

Constraints:
Not settable on default or if there is no active «Application».

Description:  
TRUE if and only if there is an active «Application» and «Menu» is one of its active menus.

Side effects:
When set to TRUE, «Menu» is added to the right end of the menu list in menus of the active «Application». When set to FALSE, «Menu» is removed from this list. In both cases, the menu bar display is updated.

_____________________________________________________
         
menu record   *208*

Type:  
MenuInfo@@

Constraints:
Not settable.

Description:  Menu record.

_____________________________________________________
         
keys  *208*

Type:   boolean 

Constraints:   Not settable.

Description:   If FALSE, menu items can have text styles. If TRUE, menu items can have command-key equivalents with modifier keys (shift, option or control).

_____________________________________________________
         
enabled?  *208*

Type:   boolean 

Description: The «Menu» is drawn black in the menu bar if and only if the value of this attribute is TRUE. Each «Menu Item» in its item list is drawn black and generates menu events when selected only if the value of this attribute is TRUE.

_____________________________________________________
         
item list  *208*

Type:   list of Menu Item 

Constraints:
Not settable when «Menu» is active.

Description: 
List of «Menu Item»s for the «Menu».  

Warning:
Results are unpredictable if any «Menu Item» is repeated in item list, or occurs in the item list of more than one active «Menu».

_____________________________________________________
          balloon  *209*

Type: 
list 

Description:
Balloon Help information; format varies with the type (Prograph string or 'STR ', 'STR#', 'TEXT' or 'PICT' resource) of Balloon Help.